<?php
	App::import("Model","Cms.CmsEmailTemplate");
	class EmailTemplate extends CmsEmailTemplate
	{
		var $fieldProperties = array(
			'body_text' => array("fieldModifier"=>"fixTextEmail")
		);
		
		function fixTextEmail($content,$action)
		{
			if($action == self::READ)
			{
				$content = str_replace(array("<br >","<br />","<br>","<br/>"), "\n", $content);
				$content = strip_tags($content);
			}
			return $content;
		}
	}
?>